<div id="tab-summary">
		<input type="hidden" name="promoRuleId" id="promoRuleId"value="${promoRule.promoRuleId}" />
		<input type="hidden" name="version" id="version"	value="${promoRule.version}" />				
	<table class="com_modi_table" width="100%">
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="promoRuleDetail.group.basic"/><h4></th>
		</tr>
		<tr>
			<th class="label_width_1">
				<StoreAdmin:label key="promoRule.name" />
			</th>
			<td>
				 <input name="name" id="name"  value="${promoRule.name}"  style="width:350px" class="inputtxt"/>
				 <probiz:plugin_tip id="nameDesc"><fmt:message key="promoRule.name.tip" /></probiz:plugin_tip>
				 &nbsp;&nbsp;<b><span id="state"><c:if test="${not empty promoRule.state}"><fmt:message key="promoRule.state.s${promoRule.state}"/></c:if></span></b>&nbsp;&nbsp;
			</td>
		</tr>
		
		<tr>
			<th>
				<StoreAdmin:label key="promoRule.promoType" />
			</th>
			<td>
				<c:if test="${promoRule.promoType == 'catalogPromotion'}">
					<c:set var="promoTypeImgSrc" value="ico_catalog.gif"></c:set>
				</c:if>
				<c:if test="${promoRule.promoType == 'shoppingcartPromotion'}">
					<c:set var="promoTypeImgSrc" value="ico_shoppingcart.gif"></c:set>
				</c:if>
				<c:if test="${promoRule.promoType == 'couponPromotion'}">
					<c:set var="promoTypeImgSrc" value="ico_coupon.gif"></c:set>
				</c:if>
				
				<span><img src="${ctxPath}/images/icon/${promoTypeImgSrc}"/><fmt:message key="promoRule.promoType.${promoRule.promoType}" /> <form:hidden path="promoType" /></span>
			</td>		
		</tr>	
		<tr>
			<th>
				<label for="checkbox_status">
					<fmt:message key="status.active" />
				</label>
			</th>
			<td>
				<input type="checkbox" name="checkbox_status" id="checkbox_status"
					onclick="ChangeValueOfStatus(this,'status')"
					<c:if test="${promoRule.status == 1}">checked</c:if>
					<c:if test="${promoRule.promoRuleId == null}">checked</c:if> />
				<probiz:plugin_tip id="statusTip"><fmt:message key="promoRule.status.tip" /></probiz:plugin_tip>
				<c:choose>
					<c:when test="${promoRule.promoRuleId == null}">
						<input type="hidden" name="status" id="status" value="1" />
					</c:when>
					<c:otherwise>
						<form:hidden path="status"/>
					</c:otherwise>
				</c:choose>
			</td>	
		</tr>	
		<tr>
			<th>
				<label for="checkbox_enableDiscountAgain">
					<fmt:message key="promoRule.enableDiscountAgain.yes" />
				</label>
			</th>
			<td>
				<input type="checkbox" name="checkbox_enableDiscountAgain"
					id="checkbox_enableDiscountAgain"
					onclick="ChangeValueOfEnableDiscountAgain(this,'enableDiscountAgain')"
					<c:if test="${promoRule.enableDiscountAgain == 1}">checked</c:if>
					<c:if test="${promoRule.promoRuleId == null}">checked</c:if> />
				<probiz:plugin_tip id="enableDiscountAgainTip"><fmt:message key="promoRule.enableDiscountAgain.tip" /></probiz:plugin_tip>	
				<c:choose>
					<c:when test="${promoRule.enableDiscountAgain == null}">
						<input type="hidden" name="enableDiscountAgain" id="enableDiscountAgain" value="1" />
					</c:when>
					<c:otherwise>
						<form:hidden path="enableDiscountAgain"/>
					</c:otherwise>
				</c:choose>
			</td>		
		</tr>		
		
		<tr>
			<th>
				<StoreAdmin:label key="promoRule.priority" />
			</th>
			<td>
				<span id="prioritySpan" style="float: left;" >
				<c:choose>
					<c:when test="${not empty promoRule.priority}">
						<input class="ui-spinner" id="priority" name="priority"  value="${promoRule.priority}" readonly="true" /> 
					</c:when>
					<c:otherwise>
						<input class="ui-spinner" id="priority" name="priority"  value="10" readonly="true" /> 
					</c:otherwise>
				</c:choose>
				</span>
				<probiz:plugin_tip id="priorityTip"><fmt:message key="promoRule.priority.tip" /></probiz:plugin_tip>
				<div class="clear"></div>	
			</td>		
		</tr>	
		<c:if test='${promoRule.promoType == "couponPromotion" }'>
		<tr>
			<th>
				<StoreAdmin:label key="promoRule.availableCount" />(<span class="red">*</span>)
			</th>
			<td>
					<span> <form:input path="availableCount" size="10" /> </span>
					<%--保存原来的使用次数 --%>		
					<input type="hidden" value="${promoRule.availableCount}" id="availableCountRecord" name="availableCountRecord"/>		
					<probiz:plugin_tip id="availableCountTip"><fmt:message key="promoRule.availableCount.tip" /></probiz:plugin_tip>
			</td>

		</tr>
		</c:if>
		<tr>
			<th>
				<StoreAdmin:label key="promoRule.startTime" />
			</th>
			<td>
					<div style="float:left;">
					<form:input id="startTime" path="startTime"  cssClass="inputtxt" size="10"/> 
					<probiz:ui_datePicker outPut="startTime" />
					</div>
					<div id="startHourSpan" style="float:left; margin:3px 0 0 0;">
						<c:choose>
						<c:when test="${not empty promoRule.startTime}">
							<input class="ui-spinner"  id="startHour" name="startHour"  value="${promoRule.startHourShow}" readonly="true"/> 
						</c:when>
						<c:otherwise>
							<input class="ui-spinner" id="startHour" name="startHour"  value="0"/> 
						</c:otherwise>
						</c:choose>
					</div>
					<div style="float:left; padding:2px 0 0 2px;">
					<fmt:message key="promoRule.hour"/>
					<probiz:plugin_tip id="startTimeTip"><fmt:message key="promoRule.startTime.tip" /></probiz:plugin_tip>
					</div>
			</td>

		</tr>
		
		<tr>
			<th>
				<StoreAdmin:label key="promoRule.endTime" />
			</th>
			<td>
				<div style="float:left;">
					<form:input id="endTime" path="endTime"  cssClass="inputtxt" size="10"/> 
					<probiz:ui_datePicker outPut="endTime" />
				</div>
				<div id="endHourSpan" style="float:left; margin:3px 0 0 0;">
						<c:choose>
						<c:when test="${not empty promoRule.endTime}">
							<input class="ui-spinner"  id="endHour" name="endHour"  value="${promoRule.endHourShow}" readonly="true"/> 
						</c:when>
						<c:otherwise>
							<input class="ui-spinner" id="endHour" name="endHour"  value="0"/> 
						</c:otherwise>
						</c:choose>
				</div>
				<div style="float:left; padding:2px 0 0 2px;">
						<fmt:message key="promoRule.hour"/>
						<probiz:plugin_tip id="endTimeTip"><fmt:message key="promoRule.endTime.tip" /></probiz:plugin_tip>
				</div>
			</td>
		</tr>
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="promoRuleDetail.group.desc"/><h4></th>
		</tr>
		
		<tr>
			<th>
				<fmt:message key="promoRule.description"/>:
			</th>
			<td>
				<textarea cols="80" rows="20" id="description" name="description">${promoRule.description}</textarea>
				<probiz:plugin_htmlEditor textareaIds="description" />
				<probiz:plugin_tip id="fullDescription_tip"><fmt:message key="description.tip" /></probiz:plugin_tip>
			</td>
		</tr>
		<tr>
			<th colspan="2" class="title"><h4><fmt:message key="promoRuleDetail.group.timeInfo"/><h4></th>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="common.message.createTime" />
			</th>
			<td>
				<span id="createTimeShow"><fmt:formatDate value="${promoRule.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
				<input type="hidden" id="createTime" name="createTime" value="<fmt:formatDate value='${promoRule.createTime}' pattern='yyyy-MM-dd HH:mm:ss'/>" />
				<input type="hidden" id="createBy" name="createBy" value="${promoRule.createBy}" />
				
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="common.message.updateTime" />
			</th>
			<td>
				<span id="updateTimeShow"><fmt:formatDate value="${promoRule.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
				<input type="hidden" id="updateTime" name="updateTime" value="<fmt:formatDate value='${promoRule.updateTime}' pattern='yyyy-MM-dd HH:mm:ss'/>" />
				<input type="hidden" id="updateBy" name="updateBy" value="${promoRule.updateBy}" />
			</td>
		</tr>
	</table>
</div>